<?php
function __autoload($class_name)
    {
        include $class_name . '.php';
    }

$conn = new dbConnection();
echo 'plnim databazi autoru!';
for($i = 0;$i < 10;++$i)
{
    $query = "INSERT INTO authors
                    VALUES (null,'test{$i}' ,md5($i),'Jmeno{$i}',
                        'email{$i}',1,true)";
    $result = $conn->db_query($query);
    if (!$result) {
    die('Invalid query: ' . mysql_error());
    }
}
echo $result;

?>
